package liyuanchen.rabc.domain.vo;

import javax.xml.crypto.Data;

public class Result {

    public boolean success;



    public String message;



    public Object data;

    public static Result failure(String message) {
        Result result = new Result();
        result.message = message;
        result.success = false;
        return result;
    }
    public static Result success(String message,Object data) {
        Result result = new Result();
        result.success = true;
        result.message = message;
        result.data = data;
        return result;
    }
}
